package sipus.database.dao;


import org.hibernate.Session;


import sipus.database.hibernate.HibernateUtil;


/**
 * Created by IntelliJ IDEA. User: Fauzi Date: Nov 20, 2008 Time: 12:43:24 PM To
 * change this template use File | Settings | File Templates.
 */
public class HibernateDaoFactory extends DaoFactory {

	/**
	 * @return kembaliannya
	 */
	public Session getCurrentSession() {
		return HibernateUtil.currentSession();
	}

	@Override
	public TbmuserDao getTbmuserDao() {
		return new TbmuserDaoImpl().setSession(getCurrentSession());
	}

	
	@Override
	public AgamaDao getAgamaDao() {
		return new AgamaDaoImpl().setSession(getCurrentSession());
	}

	public TbmroleDao getTbmroleDao() {
		return new TbmroleDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public NegaraDao getNegaraDao() {
		// TODO Auto-generated method stub
		return new NegaraDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public KecamatanDao getKecamatanDao() {
		// TODO Auto-generated method stub
		return new KecamatanDaoImpl().setSession(getCurrentSession());
	}

	@Override
	public PropinsiDao getPropinsiDao() {
		// TODO Auto-generated method stub
		return new PropinsiDaoImpl().setSession(getCurrentSession());
	}


}
